<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>比较两个数字的大小</title>
</head>

<body>
    <script type="text/javascript">
        var A = prompt('请输入A的值');
        var B = prompt('请输入B的值');
        if (A > B) {
            console.log(A + '大于' + B)
        } else if (A == B) {
            console.log(A + '等于' + B)
        } else {
            console.log(A + '小于' + B)
        }
    </script>
</body>

</html>